if(${CMAKE_CXX_LIBRARY_ARCHITECTURE} STREQUAL "aarch64-linux-gnu")
    set(CMAKE_PREFIX_PATH /usr/local/qt5.9.2/aarch64)
elseif(${CMAKE_CXX_LIBRARY_ARCHITECTURE} STREQUAL "arm-linux-gnueabi")
    set(CMAKE_PREFIX_PATH /usr/local/qt5.9.2/arm64)
elseif(${CMAKE_CXX_LIBRARY_ARCHITECTURE} STREQUAL "arm-linux-gnueabihf")
    set(CMAKE_PREFIX_PATH /usr/local/qt5.9.2/arm64)
else()
    message("CMAKE_CXX_LIBRARY_ARCHITECTURE:${CMAKE_CXX_LIBRARY_ARCHITECTURE}")
endif()

find_package(Qt5 COMPONENTS Core Widgets)

set(CMAKE_AUTOMOC ON)

add_executable(${PROJECT_NAME}
    main.cpp
    unit_tool.cpp
    type_define.cpp
    data_manager.cpp
)

target_link_libraries(${PROJECT_NAME}
    Qt5::Core
    Qt5::Widgets
)

install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin)
